package com.atguigu.springcloud.service;

import com.atguigu.springcloud.entities.CommonResult;
import com.atguigu.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * @Author csc
 * @Date 2023/3/18 0018 17:12
 * @Version 1.0
 */
@Component
public class PyamentFallbackService implements PaymentService{


    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(4444,"服务降级返回,--------------PyamentFallbackService",new Payment(id,"error"));
    }


}
